package sec_pages;

import org.openqa.selenium.WebElement;
import utils.Log4Test;

public class MySettings extends SecGeneralPage {

    public WebElement verifyMySettingIsOpened() {

        Log4Test.info("Verify  - My settings page is opened");

        return elementIsLocated(getLocator("titlePage"));

    }

    public WebElement verifyNameIsValid() {

        Log4Test.info("Verify name is valid");

        return elementIsLocated(getLocator("nameUser"));
    }

    public WebElement verifyEmailIsValid() {

        Log4Test.info("Verify  email is valid");

        return elementIsLocated(getLocator("emailUser"));
    }

    public void clickEditPersonalData() {

        elementIsLocated(getLocator("linkPersonalData")).click();

        Log4Test.info("click edit personal data");


    }

    public WebElement verifyDataChange() {

        Log4Test.info("verify Data ChangeChanged delivery address ");

        return elementIsLocated(getLocator("adrresLinkDelivery"));
    }

    public void clickWishList() {

        elementIsLocated(getLocator("linkWishList")).click();

        Log4Test.info("click link wish list");

    }
}